<template>
    <div :class="className">
    </div>
</template>

<script lang="ts">
    import {Component, Vue, Prop} from 'vue-property-decorator'

    @Component({
        name: 'GyIcon'
    })
    export default class extends Vue {
        @Prop()
        private fontName!: string;
        private get className(): string {
            return `iconfont ${this.fontName}`
        }
    }
</script>

<style scoped lang="less">
    .iconfont {
        font-size: 0.48rem;
        display: inline-block;
        background-color: white;
        padding-top: 0.02rem;
    }
</style>
